package com.coolingme.battercake.decorator;

/**
 * 加香肠的装饰器
 *
 * @author wangyue
 * @date 2020-09-15 23:39
 */
public class SuasageDecorator extends BattercakeDecorator {
    public SuasageDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected String getMsg() {
        return super.getMsg() + " 加一个香肠";
    }

    @Override
    protected Double getPrice() {
        return super.getPrice() + 2;
    }
}
